import {applyMiddleware,createStore,compose} from 'redux'
import thunk from 'redux-thunk'
import {createLogger} from 'redux-logger'
import rootReducers  from './reducers'

const logger = createLogger();
const enhancer = compose(applyMiddleware(thunk,logger))

let store = createStore(
    rootReducers,
    enhancer
)

export default store